﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace SDSystem.Models
{
    class OrganisationMeta
    {
        [ScaffoldColumn(false)]
        public int OrgId { get; set; }

        [StringLength(255, ErrorMessage = "Organisation Name must contain at least 1 character", MinimumLength = 1)]
        [Required(ErrorMessage = "Organisation Name is required")]
        public string OrgName { get; set; }

        [StringLength(255, ErrorMessage = "Organisation Short Description must contain at least 1 character", MinimumLength = 1)]
        [Required(ErrorMessage = "Organisation Short Description is required")]
        public string OrgShortDescription { get; set; }

        [StringLength(255, ErrorMessage = "Address Line 1 must contain at least 1 character", MinimumLength = 1)]
        [Required(ErrorMessage = "Address Line 1 is required")]
        public string AddressLine1 { get; set; }

        [Required(ErrorMessage = "Post Code is required")]
        public string Postcode { get; set; }

        [Required(ErrorMessage = "Type Of Business is required")]
        public int TypeOfBusiness { get; set; }

        [Required(ErrorMessage = "SIC Code is required")]
        public int Siccode { get; set; }

        [Required(ErrorMessage = "Phone Number is required")]
        public string PhoneNumber { get; set; }
    }
}
